//
//  DAFeedbackFormController.h
//
//  Created by David Aspinall on 01/04/09.
//  Copyright 2009 Plan-B Software.  
//  Some rights reserved: <http://opensource.org/licenses/mit-license.php>

// based on code 
/*******************************************************************************
 JRFeedbackController.h
 Copyright (c) 2008 Jonathan 'Wolf' Rentzsch: <http://rentzsch.com>
 Some rights reserved: <http://opensource.org/licenses/mit-license.php>
 
 ***************************************************************************/
//

#import <Cocoa/Cocoa.h>

typedef enum {
    JRFeedbackController_BugReport,
    JRFeedbackController_FeatureRequest,
    JRFeedbackController_SupportRequest,
    JRFeedbackController_SectionCount
} JRFeedbackController_Section;

@interface DAFeedbackFormController : NSWindowController
{
    IBOutlet NSTextView *textView;
    IBOutlet NSButton *includeEmailAddressCheckbox;
    IBOutlet NSComboBox *emailAddressComboBox;
    IBOutlet NSProgressIndicator *progress;

    JRFeedbackController_Section currentSection;
}

+ (void)showFeedback;

- (IBAction)switchSectionAction:(NSSegmentedControl*)sender;

- (IBAction)submitAction:(id)sender;
- (IBAction)cancelAction:(id)sender;

- (void)postFeedback;

@end
